package com.woniuxy.homepage.core.service.impl;

import com.woniuxy.homepage.core.model.CarType;
import com.woniuxy.homepage.core.mapper.CarTypeMapper;
import com.woniuxy.homepage.core.service.CarTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gmx
 * @since 2021-06-29
 */
@Service
public class CarTypeServiceImpl extends ServiceImpl<CarTypeMapper, CarType> implements CarTypeService {

    @Resource
    private CarTypeMapper carTypeMapper;

    @Override
    public List<CarType> selectByBrandId(Integer brandId) {
        List<CarType> list = this.carTypeMapper.selectByBrandId(brandId);
        return list;
    }
}
